﻿<%@ Page Title="Asignación de Abogados a Legajos" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="wfrmAsignacionAbogado.aspx.cs" Inherits="PresentationLayer.wfrmAsignacionAbogado" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .botones
        {
            width: 100px;
            padding: 0.5em 0.75em;
        }
        .filas
        {
            padding: 0.5em 0.75em;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" GroupBoxCaptionOffsetY="-22px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
        Width="100%" HeaderText="Lista de Legajos">
        <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
        <HeaderStyle Height="23px">
            <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                <table width="100%">
                    <tr>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td class="filas">
                            <dx:ASPxButton ID="btnAsignarAbogado" runat="server" Text="Asignar Abogado" Width="150px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                OnClick="btnAsignarAbogado_Click">
                            </dx:ASPxButton>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <dx:ASPxGridView ID="dgvLegajos" runat="server" AutoGenerateColumns="False" KeyFieldName="CLEG_LEGAJO" Width="100%" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                OnAfterPerformCallback="dgvLegajos_AfterPerformCallback" OnPageIndexChanged="dgvLegajos_PageIndexChanged">
                                <Columns>
                                    <dx:GridViewDataTextColumn Caption="N° Prelegajo" FieldName="CLEG_LEGAJO" ShowInCustomizationForm="True" VisibleIndex="0">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Tipo de Proceso" FieldName="CTAB_NOMTIPPRO" ShowInCustomizationForm="True" VisibleIndex="1">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataDateColumn Caption="Fecha de Recepción" FieldName="DLEG_FECREC" ShowInCustomizationForm="True" UnboundType="DateTime" VisibleIndex="2" Width="100px">
                                        <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
                                        </PropertiesDateEdit>
                                    </dx:GridViewDataDateColumn>
                                    <dx:GridViewDataTextColumn Caption="Titulo" FieldName="CLEG_TITULO" ShowInCustomizationForm="True" VisibleIndex="3" Width="150px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Observaciones" FieldName="CLEG_OBSLEG" ShowInCustomizationForm="True" VisibleIndex="4" Width="300px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Estado" FieldName="CTAB_DESCRIP" ShowInCustomizationForm="True" VisibleIndex="5">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="COD" FieldName="CTAB_ESTLEG" ShowInCustomizationForm="True" VisibleIndex="8" Visible="false">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Asignado" FieldName="CPER_NOMBRE" ShowInCustomizationForm="True" VisibleIndex="6">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="NPER_SECPER" ShowInCustomizationForm="True" Visible="False" VisibleIndex="7">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" />
                                <Settings ShowFilterRow="True" />
                                <SettingsBehavior AllowFocusedRow="True"></SettingsBehavior>
                                <Settings ShowFilterRow="True"></Settings>
                                <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                </Styles>
                                <StylesEditors>
                                    <CalendarHeader Spacing="1px">
                                    </CalendarHeader>
                                    <ProgressBar Height="25px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>
                        </td>
                    </tr>
                </table>
                <div class="PopUp">
                    <dx:ASPxPopupControl ID="pcMensaje" runat="server" Width="400px" ClientInstanceName="pcMensaje" AllowResize="false" AllowDragging="false" PopupVerticalAlign="WindowCenter" PopupHorizontalAlign="WindowCenter"
                        Modal="true" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" ShowCloseButton="false" CloseAction="None" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                        <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                        </LoadingPanelImage>
                        <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                        </ContentStyle>
                        <HeaderStyle>
                            <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl>
                                <table width="100%">
                                    <tr>
                                        <td class="filas" align="center">
                                            <dx:ASPxLabel ID="lblMensaje" runat="server" CssClass="centrar">
                                            </dx:ASPxLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="filas" align="center">
                                            <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" AutoPostBack="false" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                <ClientSideEvents Click="function(s, e){pcMensaje.Hide();}" />
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
                    <dx:ASPxPopupControl ID="pcAsigAbog" runat="server" Width="400px" ClientInstanceName="pcAsigAbog" AllowResize="false" PopupVerticalAlign="WindowCenter" PopupHorizontalAlign="WindowCenter"
                        Modal="true" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" ShowCloseButton="false" CloseAction="None" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                        <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                        </LoadingPanelImage>
                        <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                        </ContentStyle>
                        <HeaderStyle>
                            <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                        </HeaderStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl>
                                <table width="100%">
                                    <tr>
                                        <td class="filas" align="right">
                                            <dx:ASPxLabel ID="lblAbogado" runat="server" Text="Abogado :">
                                            </dx:ASPxLabel>
                                        </td>
                                        <td class="filas" align="left">
                                            <dx:ASPxComboBox ID="cboAbogadoAsig" runat="server" Width="200px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <ButtonStyle Width="11px">
                                                </ButtonStyle>
                                                <ValidationSettings ErrorText="Error has occurred">
                                                    <ErrorFrameStyle ImageSpacing="4px">
                                                        <ErrorTextPaddings PaddingLeft="4px" />
                                                    </ErrorFrameStyle>
                                                </ValidationSettings>
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                    
                                </table>
                                <table width="100%">
                                    <tr>
                                        <td class="filas" align="right">
                                            <dx:ASPxButton ID="btnAsigAbogAsignar" runat="server" Text="Asignar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                OnClick="btnAsigAbogAsignar_Click">
                                                <ClientSideEvents Click="function(s, e){ pcAsigAbog.Hide(); }" />
                                            </dx:ASPxButton>
                                        </td>
                                        <td class="filas" align="left">
                                            <dx:ASPxButton ID="btnAsigAbogCancelar" runat="server" Text="Cancelar" AutoPostBack="false" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                <ClientSideEvents Click="function(s, e){ pcAsigAbog.Hide(); }" />
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                </table>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
                </div>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>
